package com.niguang.work.api.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_dust")
public class Dust extends Model<Dust> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 扬尘设备ID
     */
    private String dustMac;
    private String macParams;
    private Long siteId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDustMac() {
        return dustMac;
    }

    public void setDustMac(String dustMac) {
        this.dustMac = dustMac;
    }

    public String getMacParams() {
        return macParams;
    }

    public void setMacParams(String macParams) {
        this.macParams = macParams;
    }

    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public static final String ID = "id";

    public static final String DUST_MAC = "dust_mac";

    public static final String MAC_PARAMS = "mac_params";

    public static final String SITE_ID = "site_id";

    public static final String CREATE_TIME = "create_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Dust{" +
        "id=" + id +
        ", dustMac=" + dustMac +
        ", macParams=" + macParams +
        ", siteId=" + siteId +
        ", createTime=" + createTime +
        "}";
    }
}
